/*
 * @Author: Leng
 * @Date: 2021-03-24 14:11:53
 * @Description: 火车
 * @FilePath: \vue-leng-demo\src\router\modules\train.ts
 */

import Layout from '@/layout/index.vue'
import countdown from '@/components/train/countdown.vue'
import trainNumInfo from '@/components/train/trainNumInfo.vue'


const train = [
    {
        path: '/train',
        component: Layout,
        redirect: '/train/countdown',
        meta: { title: '火车', icon: 'el-icon-document-copy' },
        alwayShow: true,
        children: [
            {
                path: 'countdown',
                name: 'countdownName',
                component: countdown,
                meta: { title: '倒计时', cache: true, roles: ['admin'] }
            },
            {
                path: 'trainNumInfo',
                name: 'trainNumInfo',
                component: trainNumInfo,
                meta: { title: '时刻表', cache: false, roles: ['admin', 'editor'] }
            }
        ]
    }
]

export default train